function obj=amidummy(address,rackname)
%AMIDUMMY Summary of this function goes here
%   Detailed explanation goes here
obj=amcinst('none',address,rackname);

numchans=4;
obj.channels=amcchannel('',0);
for i=1:numchans
    obj.channels(i)=amcchannel(num2str(i),0);
    obj.channels(i).data=0;
    obj.channels(i).getfun=@() obj.channels(i).data;
    obj.channels(i).setfun=@(val) dset(val,obj.channels(i));
end
end

function dset(val,chan)
chan.data=val;
end
